/*
 * test.cpp
 *
 *  Created on: 02.11.2011
 *      Author: arturblack
 */

#include "Buffer.h"
#include <iostream>
//#include <malloc.h>

using namespace std;

int main() {
	char sa;
	char *s=0;
	s=&sa;
	Buffer test((char*) "/home/arturblack/README",(char*) "/home/arturblack/output");
	for (int i = 0; i < 4097; i++) {
		sa=test.getchar();
		test.putChar(s);
	}
	sa=test.getchar();
	test.putChar(s);
	sa=test.getchar();
	test.putChar(s);
test.close();
	return 0;
}

